/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mirac
 * Date: 2025-04-18
 * Time: 14:14
 */

public class main {
    public static void main(String[] args) {
    int[] arr1 = {1,2,3,4,5}; //方式1_静态初始化
    int[] arr2 = new int[] {1,2,3,4,5};  //方式2_静态初始化
    int[] arr3 = new int[5];  //方式3_动态初始化

        int[] arr4;
        arr4 = new int[10];  //合法

        int[] arr5;
        arr5 = new int[] {1,23,3,4,5};  //合法

        /*int[] arr6;
        arr6 = {1,23,4,5,6};*/  //不合法

    }
}
